package com.bluesky.javawebbrowser.domain.html.tags;

import java.io.IOException;
import java.io.Writer;

public class Comment extends Tag {
	public Comment() {
		super(TagType.COMMENT);
	}

	public Comment(Tag tag) {
		super(TagType.COMMENT);
		copy(tag);
	}

	@Override
	public void writeHtml(Writer writer) throws IOException {
		//head
		writer.write("\n" + Tag.indents(getDepth(), "  ") );

		writer.write(content);
		
	}
}
